#ifndef EXTRACTDIALOG_H
#define EXTRACTDIALOG_H


#include "config.h"
#include "widget.h"

#include <QDialog>
#include <QButtonGroup>
#include <QPair>


namespace Ui {
class ExtractDialog;
}

class ExtractDialog : public QDialog
{
    Q_OBJECT

private:
    QButtonGroup* m_group;
    Config* m_config;
    int m_currentPage;
    int m_startPage;
    int m_lastPage;

public:
    explicit ExtractDialog(int currentPage, int startPage, int lastPage, int greenCount, CenteredWidget *parent = 0);
    ~ExtractDialog();

    QPair<int, int> range ();


protected:
    void changeEvent(QEvent *e);

private slots:
    void on_startPage_valueChanged(int arg1);

    void on_lastPage_valueChanged(int arg1);

private:
    Ui::ExtractDialog *ui;
};

#endif // EXTRACTDIALOG_H
